﻿using System;
using System.Collections;

namespace newsag
{
    class Program
    {
        static void Main(string[] args)
        {
            Queue queue = new Queue();
            queue.Enqueue("天上天下，唯朕独尊");
            queue.Enqueue("回首掏");
            queue.Enqueue("鬼刀一开");
            while (queue.Count > 1)
            {
                Console.WriteLine(queue.Dequeue());
            }

            Queue queue1 = new Queue();
            queue1.Enqueue("看不见");
            queue1.Enqueue("走位，走位");
            queue1.Enqueue("手里剑");
            queue1.Enqueue("嘿嘿");
            object[] days = queue1.ToArray();
            foreach (var ieme in days)
            {
                Console.WriteLine(ieme);
            }
            Queue queue2 = new Queue();
            queue1.Enqueue("我是个正经人");
            queue1.Enqueue("不闹了");
            var day = queue2.GetEnumerator();
            while (day.MoveNext())
            {
                Console.WriteLine(day.Current);
            }
        }
    }

}
